package com.base.service.impl;

import com.base.mapper.voipmapper.AppAuthMapper;
import com.base.po.voip.AppAuth;
import com.base.po.voip.AppAuthExample;
import com.base.service.AppAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("AppAuthService")
public class AppAuthServiceImpl implements AppAuthService {
    @Autowired
    private AppAuthMapper appAuthMapper;
    @Override
    public int countByExample(AppAuthExample example) {
        return appAuthMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(AppAuthExample example) {
        return appAuthMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return appAuthMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AppAuth record) {
        return appAuthMapper.insert(record);
    }

    @Override
    public int insertSelective(AppAuth record) {
        return appAuthMapper.insertSelective(record);
    }

    @Override
    public List<AppAuth> selectByExample(AppAuthExample example) {
        return appAuthMapper.selectByExample(example);
    }

    @Override
    public AppAuth selectByPrimaryKey(Integer id) {
        return appAuthMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(AppAuth record, AppAuthExample example) {
        return appAuthMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(AppAuth record, AppAuthExample example) {
        return appAuthMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(AppAuth record) {
        return appAuthMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AppAuth record) {
        return appAuthMapper.updateByPrimaryKey(record);
    }

    @Override
    public int judgleByUserId(String id) {
        return appAuthMapper.judgleByUserId(id);
    }

    @Override
    public AppAuth selectByUserId(String id) {
        return appAuthMapper.selectByUserId(id);
    }
}
